package com.weixin.common.core.form;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * @version 1.0.0
 * @className: LoginForm
 * @description: 用户登录对象
 * @author: zhangjunfa
 * @date: 2023/5/27 15:26
 */
@Data
public class LoginForm implements Serializable {
    private static final long serialVersionUID = -612888247356621643L;

    /**
     * 用户名
     * @description 请输入登录用户名
     * @mock root
     */
    @NotEmpty(message = "请输入登录用户名！")
    private String userName;

    /**
     * 密码
     * @description 请输入密码
     */
    @NotEmpty(message = "请输入密码！")
    private String password;
}
